export default [
  {
    path: '/',
    component: '@/wrapper/layout/layout',
    routes: [
      {
        key: 'index',
        path: '/store-index',
        exact: true,
        component: '@/pages/index/index',
      },
      {
        key: 'home',
        path: '/home',
        exact: true,
        component: '@/pages/home/home',
      },
      {
        key: 'checkorder',
        path: '/checkorder',
        exact: true,
        component: '@/pages/checkorder/checkorder',
      },
      {
        key: 'orderdetail',
        path: '/orderdetail',
        exact: true,
        component: '@/pages/orderDetail/orderDetail',
      },
      {
        path: '/payment-result',
        key: 'paymentResult',
        exact: true,
        component: '@/pages/payment/result',
      },
      {
        path: '/invoice',
        key: 'invoice',
        exact: true,
        component: '@/pages/checkorder/invoice',
      },
      {
        path: '/orderlist',
        key: 'orderlist',
        exact: true,
        component: '@/pages/orderList/orderList',
      },
      {
        path: '/line',
        key: 'line',
        exact: true,
        component: '@/pages/user/line',
      },
      {
        path: '/login',
        key: 'login',
        exact: true,
        component: '@/pages/user/login',
      },
      {
        path: '/search',
        key: 'search',
        exact: true,
        component: '@/pages/index/search',
      },
      {
        path: '/getCoupon',
        key: 'getCoupon',
        exact: true,
        component: '@/pages/getCoupon/getCoupon',
      },
      {
        exact: true,
        path: '/payment-wait/:orderNo',
        key: 'paymentWait',
        component: '@/pages/payment/wait',
      },
      {
        exact: true,
        path: '/comment/:orderId',
        key: 'comment',
        component: '@/pages/comment/comment',
      },
      {
        exact: true,
        path: '/comment-detail/:orderId',
        key: 'commentdetail',
        component: '@/pages/comment/detail',
      },
      {
        exact: true,
        path: '/mainPack/:productId',
        key: 'mainPack',
        component: '@/pages/mainPack/mainPack',
      },
      {
        key: 'store',
        path: '/store',
        exact: true,
        component: '@/pages/store/store',
      },
      {
        exact: true,
        path: '/404',
        key: 'exception',
        component: '@/pages/404'
      }, {
        path: '/*',
        redirect: '/404'
      }
    ],
  },
];
